<%-- 
    Document   : registro
    Created on : 06/06/2011, 13:30:12
    Author     : pauloferreira
--%>

<%@page contentType="text/html;charset=UTF-8" language="java"%>
<%@page isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<f:loadBundle basename="Adkiraki.mensagens" var="msg"/>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Cadastro de Login</title>
    <link href="${pageContext.request.contextPath}/Pages/CSS/Adkiraki.css" type="text/css" rel="STYLESHEET"></link>    
</head>
<body>
<f:view>
<h:form id="registro">        
    <table>
	<!-- Cabeçalho -->
        <tr>
            <td colspan="4" class="header">
            </td>
        </tr>
        <!-- Menu -->
        <tr>
            <td class="menu">
                <h:outputLink value="/Pages/View/login.jsf"><h:outputText value="Sair" styleClass="submenu"/></h:outputLink>                                
            </td>            
            <td class="menu">                
            </td>
            <td class="menu">
            </td>
            <td class="menu">
            </td>
        </tr>
    </table>        
    <fieldset>
        <legend>Dados para Registro</legend>                   
        <h:outputText value="Nome Completo:" styleClass="label"/><br>                    
        <h:inputText id="nome" value="#{registroBean.nome}" required="true" requiredMessage="Preencher o campo Nome." styleClass="edit" maxlength="60" style="width:30%"/><br>
        <h:outputText value="Login:" styleClass="label"/><br>
        <h:inputText id="login" value="#{registroBean.login}" required="true" requiredMessage="Preencher o campo Login." styleClass="edit" maxlength="25" style="width:15%"/><br>
        <h:outputText value="CPF(somente números):" styleClass="label"/><br>
        <h:inputText id="cpf" value="#{registroBean.cpf}" required="true" requiredMessage="Preencher o campo CPF." styleClass="edit" maxlength="11" style="width:10%"/><br>
        <h:outputText value="Email:" styleClass="label"/><br>
        <h:inputText id="email" value="#{registroBean.email}" required="true" requiredMessage="Preencher o campo Email." styleClass="edit" maxlength="50" style="width:25%"/><br>
        <h:outputText value="Confirmar Email:" styleClass="label"/><br>
        <h:inputText id="confEmail" value="#{registroBean.confEmail}" required="true" requiredMessage="Preencher o campo Confirmar Email." styleClass="edit" maxlength="50" style="width:25%"/><br>
        <h:outputText value="Senha:" styleClass="label"/><br>
        <h:inputSecret id="senha" value="#{registroBean.senha}" required="true" requiredMessage="Preencher o campo Senha." styleClass="edit" maxlength="16" /><br>
        <h:outputText value="Confirmar Senha:" styleClass="label"/><br>
        <h:inputSecret id="confSenha" value="#{registroBean.confSenha}" required="true" requiredMessage="Preencher o campo Confirmar Senha." styleClass="edit" maxlength="16" /><br>
        <br>
        <hr>
        <h:commandButton id="salvar" value="#{msg.btn_salvar}" type="submit" styleClass="button" style="width:10%" action="#{registroBean.Salvar}"/>
        <h:commandButton id="limpar" value="#{msg.btn_limpar}" type="reset" styleClass="button" style="width:10%"/>
    </fieldset>
    <br>
    <p>
        <h:messages styleClass="messages_erro"/>
    </p>                         
</h:form>
</f:view>
</body>
</html>